package com.asimplefox.service;

import com.asimplefox.entity.PaypalOrder;
import com.asimplefox.entity.User;
import com.asimplefox.serurity.UserRoleDetails;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author kloping
 * @since 2024-11-26
 */
public interface IPaypalOrderService extends IService<PaypalOrder> {

    void subscribeNow(PaypalOrder paypalOrder);

    String backCap(String token, String payerID) throws IOException;

    String cancel(String token) throws IOException;

    String create(UserRoleDetails details, Integer price) throws IOException;

    String query(String id) throws IOException;

    List list(User user);
}
